package org.dru.clay.resolver;

import java.io.File;

import org.dru.clay.respository.artifact.Artifact;
import org.dru.clay.respository.artifact.Module;

public class FlatDirectoryLayout implements DirectoryLayout {
	@Override
	public File directory(File baseDir, Module module) {
		return baseDir;
	}

	@Override
	public File file(File baseDir, Module module, Artifact artifact) {
		return new File(baseDir, artifact.asString());
	}

}
